package Computer.Main;

public class Address implements Pointer {
	private final int pos;
	
	public Address(int pos) {
		this.pos = pos;
	}
	
	public String toString() {
		return "[" + pos + "]";
	}

	public int value() {
		return pos;
	}
	
	@Override
	public DataWord getWord(Memory memory) {
		return memory.get(this);
	}
}
